Fixed issue with unending scan

If there were no entries to send, the check would wait forever