Fix mako exception on None theme