Fix undefined == '' comparison; regenerate all dynamic contents

How to keep the re-generation minimum?