Fix another instance of the PyDict_GetItem compiler warning.
Merge branch 'fix-compiler-warning' into release/4.5.0