BUG Fix issue with generating tree data for missing pages

Previously attempting to request a url like `admin/pages/updatetreenodes?ids=999` with an invalid ID would generate an error instead of returning blank information.

Necessary to fix some errors being triggered in cms behat tests.