Bug 1056918 - Allow distinguishing between 'not found' and 'database error' programmatically r=standard8