Browser hangs when parent = state

If you accidentally set ncyBreadcrumb.parent to the current state the
browser will hang and crash. This simple check prevents that.