Added a check in case no webcam is found.