Add a check to detect "duplicate app instances" bug

Test: Boot
Test: Added debug code to induce the WTF situation, booted and checked the log
Bug: 185177290

Change-Id: Ie95164f2794b461115f07d02c2363fbdc9a517b4
2 files changed