Actually, this particular exception only comes when there is server error, in that case, we can't get template variables! so, I had to write this