Alec Baldwin told gun was safe before fatal shooting, court records show