[Chipmunk] Avoid crashes in collision handling