Baldwin's gun not properly checked -court docs