set legacy category based on new vertical id in createwiki

Use vertical_id to set the "legacy" category of a wiki while we are in transition to new vertical/category split.  
Also fixed a couple of warnings because category is optional, vertical is required

@inez