Fixes issue that causes a "None" statement to prevent creation of that
type of element. Fixes #77.