Fixed a crash

[**View PocketMine Crash Archive crash #19321**](http://crash.pocketmine.net/view/19321)