Fix app by domain

@czue @dannyroberts 
I think this whole function might be able to be replaced by get_apps_in_domain(domain, include_remote=False), but didn't make the change here