Fix potential crash when enqueueing from empty files view
Reason for the change
If the current folder is empty, then mPendingEntries will be empty. Calling front on an empty queue is undefined behaviour, and can result in a crash.
Test plan
- Added an autotest
Bugs fixed
Edited by Jack Hill