Fix 'if' to become 'elif', to fix tag assignment bug.

My previous PR accidentally left tags out on their lonesome, causing them to be 'assigned' to in the default assignment clause, rather than extended as they should have been! Boo!