fix empty priority queue state
Merge pull request #4199 from robertboloc/#4172-fix

 Issue #4172 - Fixed empty priority queue state
Merge branch 'hotfix/4199'

Close #4199
Fixes #4172