Fix undef string concat in case of error