Take Photo Widget: Conditions are not triggered on Safari Browser after uploading an image