Reset invalid opacity values to default (#1923)