Fixed crash when no cocoon nearby.