The former prime minister tells a documentary she is responsible for "hostile environment" errors.