Just the bug fix from 776

The dashboard breadcrumbs no longer include pages that no longer exist (eg single pages from uninstalled addons).
Kept code structured to facilitate future enhancement for configurable breadcrumb length.
Merge pull request #1120 from JohntheFish/patch-10

Just the bug fix from 776