if no rules present exception, ids for app publish

When there is no rules present , application was giving error.