check if offset exists in breadcrumb.php

Closes #6878