TAP5-1802: Avoid an NPE when no Request object is known

Re-organize code to move logic out of ComponentPageElementImpl and into Page and ComponentElementResources.