Almost everyone working at the BBC does their best to be fair, accurate and impartial, a former boss of the broadcaster has said, amid controversy over a documentary on Gaza which featured the son of a Hamas official.