Fixed to work when data doesn’t include end column

(as per @rgrp’s suggestion on the mailing list)
Merge pull request #50 from andylolz/master

Fixed so that even if you’re missing the end field, everything is fine.