Fix for javascript error when no breadcrumbs are defined