Possible fix for issue 7

http://dev.bukkit.org/bukkit-mods/ender-chest/tickets/7-npe/