Added null check for new pages
Merge remote-tracking branch 'origin/master'