Added error handling

Added some error handling in case someone is trying to manipulate a
dispenser without being a player.