Fix crashes in Category and Tag providers.
Merge pull request #56 from b17/search_layer

Fix crashes in Category and Tag providers.