Fixed up (hopefully) a couple of bugs, editing

Editing tags wasn't working 100% due to not erasing an array value, now
fixed. Null values also were causing crashes, I've implemented a
'continue if null' line which may or may not cause issues down the line
:)