Fix PHP notice in Volt when if body is empty

Fix #1998
Test case
Updated CHANGELOG
Merge pull request #2007 from sjinks/issue-1998

Fix PHP notice in Volt when if body is empty