LPS-27013

Resending this - Add check if the page is staging page. See my comments at https://github.com/sergiogonzalez/liferay-portal/pull/643#issuecomment-17161107