Fix Livestatus queries where the second operand is omitted

fixes #6494