controls/PageRouter: fix crash on beginCreate failing
Sometimes component->beginCreate yields a nullptr, so we need to explicitly handle that being a possibility.
Sometimes component->beginCreate yields a nullptr, so we need to explicitly handle that being a possibility.