Update upload/catalog/controller/common/seo_url.php

// rmove any empty arrays from trailing /