Don't create compound statements for a blank compound list

Closes #668