Fix for despawning horses on server restart

Perhaps this works, I am not good with java at all. If not, just delete :)
Could not test it myself, don't have Maven for compiling.