Add missing property check for onRoute trigger