Fixes the empty browser issue in yosemite

@alazier @tgoyne 
This takes care of the race condition in yosemite, that causes the browser to open with an empty window