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.