Yeah, coming in with an empty node, or a string that isn't found as an ID in the document should come here, so we have to try and resolve the ID first, then check that it doesn't exist.