You can use Attribute equal selector to prevent click event in case of blank href like,
$('.list-group-item a[href=""]').click(function (event) { // where href are blank
event.preventDefault();
});
And I would like to suggest don't make empty the href's
, you can place #
if no links are there.