BUG: Fix clipping if val_min or val_max is None
Merge pull request #1 from AlexandreAbraham/clip_problem

BUG: Fix clipping if val_min or val_max is None