fix(screenshot): fix seg fault when no screenshots

Fixed seg fault when no screenshots are found. Was causing array index out of bounds exception.