work around django4.0's extra elide_empty kwarg to Query.get_compiler (#19646)
work around django4.0's extra elide_empty kwarg to Query.get_compiler (#19646)

* work around django4.0's extra elide_empty kwarg to Query.get_compiler

* replace get_compiler with simpler logic; add & reword comments
wagnerand/addons-server,diox/olympia,mozilla/addons-server,diox/olympia,mozilla/addons-server,diox/olympia,wagnerand/addons-server,wagnerand/addons-server,diox/olympia,wagnerand/addons-server,mozilla/addons-server,mozilla/addons-server