issuem-functions.php: fixed PHP error: trying to get property of non-object