refs #4053 coding style, prevent some possible errors
refs #4053 prevent blank content is displayed after closing the popover in admin