fixed minor bug in total variation denoising

Unhandled error now display warning and returns None