Fixes #1109 Themes with same name

Tried a fix for this:
https://github.com/mybb/mybb/issues/1109
The same may apply here if that is the case.