Fix auto-fill on filename input.
Fix auto-fill on filename input.

Add a condition in the if statement to check if the input is empty when a file
has been chosen.

Closes-Bug: 1367673
Change-Id: I9cc1ef91bf85805ff057ced987b741736446c014

redhat-openstack/horizon,promptworks/horizon,doug-fish/horizon,blueboxgroup/horizon,xinwu/horizon,RudoCris/horizon,dan1/horizon-x509,openstack/horizon,j4/horizon,icloudrnd/automation_tools,maestro-hybrid-cloud/horizon,anthonydillon/horizon,openstack/horizon,anthonydillon/horizon,pranavtendolkr/horizon,newrocknj/horizon,yeming233/horizon,icloudrnd/automation_tools,doug-fish/horizon,karthik-suresh/horizon,Tesora/tesora-horizon,noironetworks/horizon,sandvine/horizon,yeming233/horizon,endorphinl/horizon-fork,icloudrnd/automation_tools,Solinea/horizon,BiznetGIO/horizon,mandeepdhami/horizon,davidcusatis/horizon,philoniare/horizon,yeming233/horizon,redhat-cip/horizon,wangxiangyu/horizon,ChameleonCloud/horizon,wangxiangyu/horizon,RudoCris/horizon,VaneCloud/horizon,takeshineshiro/horizon,kfox1111/horizon,dan1/horizon-proto,dan1/horizon-x509,eayunstack/horizon,davidcusatis/horizon,agileblaze/OpenStackTwoFactorAuthentication,icloudrnd/automation_tools,damien-dg/horizon,NCI-Cloud/horizon,davidcusatis/horizon,dan1/horizon-x509,tellesnobrega/horizon,izadorozhna/dashboard_integration_tests,redhat-cip/horizon,endorphinl/horizon,redhat-cip/horizon,redhat-openstack/horizon,philoniare/horizon,agileblaze/OpenStackTwoFactorAuthentication,wolverineav/horizon,j4/horizon,philoniare/horizon,newrocknj/horizon,yjxtogo/horizon,Tesora/tesora-horizon,FNST-OpenStack/horizon,bac/horizon,BiznetGIO/horizon,endorphinl/horizon,promptworks/horizon,maestro-hybrid-cloud/horizon,django-leonardo/horizon,tellesnobrega/horizon,Daniex/horizon,pranavtendolkr/horizon,endorphinl/horizon,Daniex/horizon,Solinea/horizon,dan1/horizon-proto,Mirantis/mos-horizon,Dark-Hacker/horizon,Hodorable/0602,openstack/horizon,django-leonardo/horizon,damien-dg/horizon,coreycb/horizon,coreycb/horizon,endorphinl/horizon,promptworks/horizon,BiznetGIO/horizon,henaras/horizon,xinwu/horizon,promptworks/horizon,dan1/horizon-x509,NeCTAR-RC/horizon,Hodorable/0602,idjaw/horizon,idjaw/horizon,VaneCloud/horizon,watonyweng/horizon,bigswitch/horizon,yeming233/horizon,j4/horizon,NCI-Cloud/horizon,NeCTAR-RC/horizon,wolverineav/horizon,coreycb/horizon,newrocknj/horizon,Solinea/horizon,wolverineav/horizon,sandvine/horizon,luhanhan/horizon,Dark-Hacker/horizon,watonyweng/horizon,agileblaze/OpenStackTwoFactorAuthentication,VaneCloud/horizon,mdavid/horizon,kfox1111/horizon,endorphinl/horizon-fork,damien-dg/horizon,doug-fish/horizon,doug-fish/horizon,redhat-openstack/horizon,mandeepdhami/horizon,Hodorable/0602,liyitest/rr,Metaswitch/horizon,Dark-Hacker/horizon,NCI-Cloud/horizon,vladryk/horizon,coreycb/horizon,karthik-suresh/horizon,redhat-openstack/horizon,idjaw/horizon,liyitest/rr,endorphinl/horizon-fork,noironetworks/horizon,vladryk/horizon,karthik-suresh/horizon,kfox1111/horizon,NeCTAR-RC/horizon,agileblaze/OpenStackTwoFactorAuthentication,idjaw/horizon,tqtran7/horizon,saydulk/horizon,henaras/horizon,newrocknj/horizon,mdavid/horizon,noironetworks/horizon,redhat-cip/horizon,bac/horizon,pranavtendolkr/horizon,Hodorable/0602,dan1/horizon-proto,FNST-OpenStack/horizon,ChameleonCloud/horizon,BiznetGIO/horizon,eayunstack/horizon,gerrive/horizon,django-leonardo/horizon,noironetworks/horizon,tqtran7/horizon,gerrive/horizon,philoniare/horizon,bac/horizon,NCI-Cloud/horizon,vladryk/horizon,wangxiangyu/horizon,bigswitch/horizon,saydulk/horizon,watonyweng/horizon,FNST-OpenStack/horizon,openstack/horizon,takeshineshiro/horizon,Daniex/horizon,Mirantis/mos-horizon,ChameleonCloud/horizon,Dark-Hacker/horizon,bigswitch/horizon,wolverineav/horizon,Solinea/horizon,tqtran7/horizon,sandvine/horizon,kfox1111/horizon,anthonydillon/horizon,xinwu/horizon,NeCTAR-RC/horizon,wangxiangyu/horizon,django-leonardo/horizon,xinwu/horizon,tqtran7/horizon,takeshineshiro/horizon,watonyweng/horizon,anthonydillon/horizon,yjxtogo/horizon,blueboxgroup/horizon,karthik-suresh/horizon,mdavid/horizon,blueboxgroup/horizon,Mirantis/mos-horizon,gerrive/horizon,luhanhan/horizon,Tesora/tesora-horizon,luhanhan/horizon,blueboxgroup/horizon,henaras/horizon,Tesora/tesora-horizon,pranavtendolkr/horizon,Metaswitch/horizon,Mirantis/mos-horizon,eayunstack/horizon,mandeepdhami/horizon,saydulk/horizon,endorphinl/horizon-fork,maestro-hybrid-cloud/horizon,FNST-OpenStack/horizon,yjxtogo/horizon,Daniex/horizon,henaras/horizon,Metaswitch/horizon,luhanhan/horizon,VaneCloud/horizon,sandvine/horizon,Metaswitch/horizon,liyitest/rr,ChameleonCloud/horizon,tellesnobrega/horizon,dan1/horizon-proto,liyitest/rr,bac/horizon,j4/horizon,mandeepdhami/horizon,takeshineshiro/horizon,bigswitch/horizon,RudoCris/horizon,saydulk/horizon,yjxtogo/horizon,gerrive/horizon,maestro-hybrid-cloud/horizon,mdavid/horizon,tellesnobrega/horizon,izadorozhna/dashboard_integration_tests,damien-dg/horizon,RudoCris/horizon,vladryk/horizon,davidcusatis/horizon