Adding error handling to askWikidataQuestion for WikiGrok version A

Also removing unnecessary duplicate code.

Change-Id: I629d59b4c270e6e17143af066b990673b19b2b8f
Merge "Adding error handling to askWikidataQuestion for WikiGrok version A"