Fix for multiple invalid </aside> tags

The original order of the after_widget_area() str_replace functions
caused the closing `</div>` replcement for the `</ul>` to be replaced by an
`</aside>`.

The fix reorders the execution of the replacements to avoid this.