Railroad tracks at site of boy's accident lacked fence, despite law