Fixed a segfault which occurred when a query label wasn't specified.