Fixed bug where templates were rendered regardless of action return value.