CtsMedia TestUtils: Handle cases where mainline module isn't installed

isMainlineModuleFactoryVersion() used to throw NameNotFoundException
if mainline module wasn't installed and this exception thrown leads to
a test failure on aosp builds which do not have com.google.* modules.
Now, instead of throwing an exception, it returns true if the module
is not found.

Bug: 227697897
Test: atest VideoDecoderPerfTest on aosp builds

Merged-In: I32ab63bcbff1b6afe2861dea5c6e04fe60e5fec9
Change-Id: If473c3ed90b3e24ca326f0d30633de4fc357bc75
(cherry picked from commit 0dc28f8903f9b34ae31eff33491dc501bb344e6e)
Merged-In: If473c3ed90b3e24ca326f0d30633de4fc357bc75
2 files changed