fix error in admin navigation controller when trying to flush buffer when there was no buffer
Merge pull request #2921 from james2doyle/2.2/fix-nav-ob-end-clean

fix error in admin nav controller when trying to flush buffer when there was none