Catch and log exceptions in Contributions\Query

Change-Id: I6c386bdd83daef6661a66b79c5b04d4dda77b330