Levels, exposure: better commit_params logic (in case of bad histogram)

Anything broken?