AssetGraph.query test coverage improvements

Hmm, I think a value of `null` will break this condition. (Not a regression, I know :)