Made RegistrationId, CommandUIExtension optional. Null to these two arguments fails to create custom action.