Bug 1061804 - Browser OpVar Customization Fixes

If aData exists then the object it contains should be well formed, but it wouldn't hurt checking here that aData.bookmarks exists (to avoid getting a typeError undefined later on). 
Could you change this to  if (!aData || ! aData.bookmarks) ?