Remove corrupt apexes only if not active

ApexFile::Open() could fail even when it is valid. Just in case, check
if the path is active(mounted) or not.

Bug: 143973464
Test: apexd_host_tests
Change-Id: I09d4e702e34d6e354c9ddcf878daf259fd796bc1
2 files changed