Fix two problems in bulk search/replace:

1) S/R of datetime fields generated an exception
2) Using {template} as a source generated an error until the destination field was filled in.