Germany has suggested that it will not arrest Benjamin Netanyahu if he travels to the country because of its Nazi history.