Finish activity when no file is selected