Add check for refsLookup existence to core/createItem