Null check for viewPath.lookup