NLopt :FORCED_STOP when objective function has wrong signature (missing gradient arg)

Related:

Nlopt catches all errors and throws FORCED_STOP. The right fix would be to communicate what error caused the FORCED_STOP.