We don't have any testing of dynamically changing grid-auto-flow and that should either uncover or prevent future bugs.
Bug 112574 landed a test for dynamic updates to grid-auto-flow as well as fixing an obvious bug.