Fix: Don't try to execute empty Livestatus queries.

Fixes #5484