Get the parent theme from the object that would actually contain it. Fixes #22.