Fix some wireless device sync bugs.
Eliminate possible problems when using UNDEFINED_DATE
Merge branch 'master' of https://github.com/cbhaley/calibre