Fix for the issue #12

When there is no posts found (empty page/archives) an error like this happens:

Notice: Trying to get property of non-object in /Users/wordpress/Applications/MAMP/htdocs/wc.connect.local/stargazer/wp-content/plugins/page-template-example/class-page-template-example.php on line 169

Now the bug is fixed with this pull request :)