Hi all,
I encountered this bug today and I found it's cause after spending 2 - 3 hours on it. I was putting a comment line on top of my wrapper "div" just under the "template". This single comment line was causing this bug. It was fixed after I removed it.