Protect dashboards against invalid queries in "grouped by" dashlets. (retrofit from trunk)

git-svn-id: http://svn.code.sf.net/p/itop/code/branches/2.0.2@3310 a333f486-631f-4898-b8df-5754b55c2be0