Check buffer length in geometry parser

To avoid "Uncaught RangeError: Trying to access beyond buffer length" if field value is empty