lib/string_helpers.c: fix infinite loop in string_get_size()