Use activeBuffer for title, not the shared pageTitle
Searching now works with onlyUnread activated
Bugfix last commit, check for undefined