Active Learning with Safety Constraints