This seems to be an error on your client side. Please try uninstalling and reinstalling Minecraft.
Optifine can cause issues where entities visually dissapear, but are still there. Relogging will cause the entity to reappear.
This seems to be an error on your client side. Please try uninstalling and reinstalling Minecraft.