Fix an error in setPOINT2 if an argument is undefined.