fix for non-object error on css styling for category based tag cloud

debug message:
Notice: Trying to get property of non-object in [...]/wp-content/themes/wordpress-bootstrap/functions.php(271) : regexp code on line 1