Fixed warning problem when selected sidebar is blank.