RGB2LAB: add some checks