message: Move checking if app revoked in the begining of check Permissions
  In case if app revoked it should not be checked for any other
  permissions
diff: @@ -609,6 +609,17 @@ void PolicyManagerImpl::CheckPermissions(const PTString& app_id,
  << " returns true");
  }
  + if (cache_->IsApplicationRevoked(app_id)) {
  + // SDL must be able to notify mobile side with its status after app has
  + // been revoked by backend
  + if ("OnHMIStatus" == rpc && "NONE" == hmi_level) {
  + result.hmi_level_permitted = kRpcAllowed;
  + } else {
  + result.hmi_level_permitted = kRpcDisallowed;
  + }
  + return;
  + }
  +
  const bool known_rpc = rpc_permissions.end() != rpc_permissions.find(rpc);
  LOG4CXX_DEBUG(logger_, "Is known rpc " <<
  (known_rpc ? "true" : "false") );
  @@ -712,17 +723,6 @@ void PolicyManagerImpl::CheckPermissions(const PTString& app_id,
  LOG4CXX_DEBUG(logger_, "There are no parameters allowed.");
  result.hmi_level_permitted = kRpcDisallowed;
  }
  -
  - if (cache_->IsApplicationRevoked(app_id)) {
  - // SDL must be able to notify mobile side with its status after app has
  - // been revoked by backend
  - if ("OnHMIStatus" == rpc && "NONE" == hmi_level) {
  - result.hmi_level_permitted = kRpcAllowed;
  - } else {
  - result.hmi_level_permitted = kRpcDisallowed;
  - }
  - return;
  - }
  }
  bool PolicyManagerImpl::ResetUserConsent() {
  