Fixed issue #1010 that allows statements with commas.

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>