Fixed inventory clearing + NPE when config is missing entries