[JBIDE-15968] determine env var support via domain or application

    
Before this fix we were determining if env var could be edited by
querying the application. When creating a new application we have none
yet, we have to query the domain to find out about env var support