Prevent WPF control from dying in design time.

Check if in design time. If so don't try to create the offscreen browser.