Fix mloginfo --queries but no queries in log file

Related to #213
Also fixes #240