Allow NULL values in setSharedLastSync()