Check eventRouter value against null in Page class (#14803).

Change-Id: Ia7dd54c4cf10a2c56a5ef36864a6bb94f1d9167f