ide: Fix bug which caused a bogus document to be added to the doc hash when a closed doc is accessed

- QHash works similarly to c++ map, i.e. [key] inserts a default constructed value if nothing is found, value(key) does not

Signed-off-by: Scott Wilson <i@scottwilson.ca>