Make sure the correct exception is thrown if the label is not recognized