fixed a breadcrumb NPE when the selection is null