check if offset exists in breadcrumb.php

Closes #6878 :japanese_ogre: