Fix design mode detection on Windows Phone, where DependencyObject is an...

... abstract type.