If I use the stand-alone FML from here, the bug doesn't happen. This isn't particularly newsworthy (it doesn't change nearly as much as the full Forge package), but I tested it for completeness's sake. It just means that the bug is definitely in the main Forge code, rather than elsewhere.