return empty string if pos > chrs in substr

Just to be in line with the other backends.