Return 0 in getCategoryId if no rows are returned. Fixes out of index exception.

git-svn-id: https://android.svn.wordpress.org/trunk@921 a6565c4b-a94d-4d28-bb26-aa9e5ab542c0