allow null as value in source

This fixes `getStyleSafeValue` to not fail, when value is `null`.