Added test for dummy joints (joints that are not connected to any nodes)

Fix an issue where joints not connected to any body will cause a crash