Bugfix returning nullptr in JointPointerAllocate