Oh, there were actually two different bugs that resulted in similar errors. With https://github.com/discourse/discourse/commit/19edc4abb8442f9c5c554ca1cecfea9628fe09e1 it should work under all circumstances.
7 Likes