bug951401 -  middleware setup should throw an error when unknown language was set