fix StringIndexOutOfBoundsException in xtc when importing an empty filename

e.g., #include ""
throws proper (conditional) error message instead
simple test case (not yet automated)