Check whether problem definition is set before completing the setup() call

This change lets RRTStar work with MoveIt without segfaulting. Specifically tested this fix with MoveIt's benchmarking stuff.
In OMPL planner names can be changed externally, so I'd use %s instead of "[RRTStar]" (no [] either) and pass getName().c_str().