handle undefined cues
Merge pull request #1 from benjaminbradley/master

handle undefined cues