Fixes #1109 Themes with same name

Tried a fix for this:
https://github.com/mybb/mybb/issues/1109
So, its good to go or need a change?