Fix a bug where rendering on the root layer while a focused overlay is closing would crash with an error like this:
up.Error: Must pass an up.Layer as { layer } option, but got undefined
unpoly-migrate.js
to enable deprecated APIs.
See our upgrading guide for details.