Add check if no pupil is detected, fixes #1