null pointer exception resolved for hosted page content