EU court adviser: Britain could change its mind on Brexit