fixing rewrite causing an issue with fab deploy.
add try/catch to fix issues with templates.