Only show query error messages when app is not in background (same
problem as #40).