cmdbtool: Feature added: return non-zero if query is empty