Fix mako exception on None theme
Merge pull request #887 from camptocamp/lastfix

Fix mako exception on None theme