Adjust NoteBarView to not cause crash

The crash happened in WeSay (https://jira.sil.org/browse/WS-211).
The fix is safe for Windows, and may even be viewed as a bit of an
optimization.