#30 made decoding of query result null-safe (fixed NPE)