add nil checks around view controllers in OKBridge