make sure we only raise when action_on_invalid_parameters == :raise