Fixed UIView crash
Not sure if this check is useful before enabling console?