check if offset exists in breadcrumb.php

Closes #6878
Change structure of check to appease claudio
Merge pull request #6879 from bryceadams/patch-6878

check if offset exists in breadcrumb.php