Fix bug in jinjarenderer if themedir is not defined