Bug 874611 - Fix error reporting in some ContactDB methods. r=gwagner