Fixed Skeleton getJoint call.

Joint might be NULL, so changed return value to pointer.
Should never use [] operation for maps when finding values.
It adds value to maps when not found.