Fixed problem with queries when there is no result

According to
https://github.com/GavickPro/News-Show-Pro-GK5/commit/0788a1ff831ab881fa
744a207bb2bff6a82499e3