fix hipchat env key check