Minor bugfix for freezing editor due to out of bounds frame index

Resubmission for pull request #472. 
Bug fix for out of bounds index in @frames in tick listener. Possibly related to #438