Are we sure the business you changed here with the update of the markers is OK? Please test with the PR2 and see what happens when attempting to set invalid IK poses.