Update page.rb

avoid children query when not needed. this is a big performance improvement for sites with hundres of pages.
Merge pull request #351 from rjst/patch-1

avoid children query when not needed