BookmarkBar: style fixes and some error checking.

Thanks to axel for reviewing.