Update TriggerReceiver.java

Map objects are now within if{} scope