It wouldn't shock me if the Mirai has even bigger profit margins. Fuel cell systems aren't that much more expensive than internal combustion engines to build.
If the Mirai really had those losses, Toyota would be literally losing billions on the Mirai by itself.