Added a safety check in the map script for null triggers.
Added an example trigger class which always fires the first time it is checked (and never after).