Bugfix: error queue emptying clear STB correctly -> corrected queue
empty check.