Add check for refsLookup existence to core/createItem

Currently createItem will fail if you have a relationship to a list that it has no relationships for.