throwing an exception if an invalid locale page is loaded - fixes #716