Fix an exception being thrown in view.createSubview when no subview is passed in