Work for Sitemesh issue #43 (https://github.com/sitemesh/sitemesh3/issues/43)