Add null check pointer to prevent crashes.

Add null check pointer to prevent crashes when an player stops riding an entity due to events inside the entity tick loop.
Null-pointer exceptions (and following crash) were caused by [MyWarp] signs triggering by redstone inside the entity loop (Player was teleported during the entity tick, causing it to stop riding an entity).