Prevent segfault when parsing empty strings