Fix sigsegv caused by bad target check in A_Custom3DRotate See merge request !1430
mentioned in issue #497 (closed)