Flasher: drop unused preference

 * also check for nullpointer exceptions

Change-Id: I23fe051c0b5c37ff44ada5384a8383e2edb2e06a