Ensure view is loaded before asking for the content size

You should load the view before asking for the content size. Content size without a view is meaningless. Apple's Popover allows you to set the preferred content size in viewDidLoad. This fix supports this pattern.