Fix of http://jira.luricos.de/browse/XAUTH-150

This was NullPointerException when someone change hideInv to false, because function buildItemStack can't parse null from database. Maybe this need more complex fix?but i don't have time to study all code. I test it.