DRILL-1780: check if result set is empty before accessing; show a neat message to the user when resultset is empty; minor refactorings to DrillRestServer