Fix bug report with-portals example #5694 (#5714)
Fix bug report with-portals example #5694 (#5714)

I'm trying to contribute on resolving issues,
hope this help.

Fixes #5694
JeromeFitz/next.js,azukaru/next.js,JeromeFitz/next.js,zeit/next.js,flybayer/next.js,BlancheXu/test,azukaru/next.js,JeromeFitz/next.js,zeit/next.js,BlancheXu/test,azukaru/next.js,JeromeFitz/next.js,zeit/next.js,BlancheXu/test,flybayer/next.js,flybayer/next.js,flybayer/next.js,azukaru/next.js