Fix for empty rewrite slug

When exporting code without specifying a rewrite slug, it exports an empty string which can goof up rewrite rules.