Fix nil class in validate :no_credit_allowed.