Fix menu separator creation issue.

This fixes issue [#2569](https://github.com/adobe/brackets/issues/2569).