Prevent notice about $post being a "non-object"

There are situation when $post is not a WP_Post Object. I experienced this in a 0 search result case.
This causes a Notice-Warning when „define('WP_DEBUG', true)“:

„Notice: Trying to get property of non-object in …wp-content/plugins/wp-facebook-open-graph-protocol/wp-facebook-ogp.php on line 159 
Notice: Trying to get property of non-object in …wp-includes/post-template.php on line 29 
Notice: Trying to get property of non-object in …wp-content/plugins/wp-facebook-open-graph-protocol/wp-facebook-ogp.php on line 42“
Move from [] to array()

My staging system did not like the [] even though development did …
Merge branch 'master' of https://github.com/chuckreynolds/WPFBOGP into prevent_notice
Merge pull request #37 from tordans/prevent_notice

Prevent notice about $post being a "non-object"