Preventing an error from being raised when a MongoDB document is not found.