Apply fix that was causing profile_generator to fail.

https://github.com/discourse/discourse/commit/e1be1e5fd9c0907b8bd6e81f36cc925f9d642e18