Previously functions such as concat() would result in a panic if there was a null element and a sequence, as in the included test. This PR adds a check if the error index is outside of the range of arguments and crafts an error that references the entire function instead of the null argument.