Fix NullPointerException in AlligatorToJson if an egg has no parent