check to see if S(extratags) before EXPAND(extratags)

if you call mkd_define_tag() after mkd_deallocate_tags(), it causes an error. Here is the fix to call CREATE(extratags) in case extratags is deallocated already.