This may be a bug. Please post a support incident. Even if DW is mistaken in throwing the error we should be able to code around it. It doesn't seem to happen all the time, so make sure to include a copy of your template in the post so we can try to reproduce it.