fix empty view label and layout
preventing potenial NPE, report 3dc54d212c6e87358412f03acb205b51