remove navigation bar element when removed via setNavigationBar(null)