Bug 872364 - Fix destructive warning code to work better with automation

This fixes the "destructive warning" code to work better with automation, specifically TBPL:

1 - it exits with code 1 when aborting tests due to missing testvars.json entry
2 - it skips the check for B2G desktop builds, for which it isn't relevant