Prevent error from inventory click world event.