Test that we don't crash when creating a message port for an inactive document.