Remove joints whose bodies no longer exist