Only mark unknown schemas as unresolved

Only mark unknown schemas as unresolved. This stops previously loaded schemas from being nulled when referenced, it also makes sure that $refs only are pushed to unresolvedRefs once.