Fixed redirect after registration when locale is undefined