Update header.php

Fixed an exception being thrown where no pages were found.
The problem was you were trying to echo out something that isn't always available to be echoed causing an exception to be thrown.