[PIA] add missing flag checks

This only prevents PIA from crashing. Install-unknown-source still won't
work until the flag is enabled.

BUG: 322928097
Test: builds

Change-Id: I9fc357000d20de7a2002ac8b7f5b2dae617fc354
3 files changed