Added check for mView to new API, call might happen during shutdown