Fix isNaN check on skip frames