Added guard in darken- and lighten primitive to filter out null values.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>