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.
Merge branch 'master' of https://github.com/cbhaley/calibre

Bulk metadata dialog: Fix search and replace on datetime fields
failing with an error.