problem.hh: use BOOST_MPL_ASSERT for cost function check.

The BOOST_MPL_ASSERT_MSG version led to the following compiler error:

error: invalid abstract parameter type ‘roboptim::GenericDifferentiableFunction<roboptim::EigenMatrixDense>’

Indeed, the MSG version expects an integral constant expression, while
the basic one expects a boolean nullary metafunction.