I'm not able to reproduce the problem with the template files you have provided.
here are a few things to try:
1) change the extension from .dwt to .php.dwt to create a dynamic template
2) Disable the preview. go to edit -> WebAssist Preferences. select Preview nd check the disable preview option.