Function get_constraint_target() should catch the case when a constraint has unknown type, to prevent a pointer to become unitialized.
Function get_constraint_target() should catch the case when a constraint has unknown type, to prevent a pointer to become unitialized.