Fix for PHP Notices: "Undefined variable: current_blog ..." and "Trying to get property of non-object ..."