http://dusty.dorkzilla.org/~dlg/rc-bug.png
i'm fairly confident you can't have -1 unread messages, and the page title is still "RoundCube|Mail::Junk", even though i'm in the Inbox.
i have no idea where to even begin on fixing that bug, but feel free to tell me what information you need to track this one down --david