Fixes null checks for legend value formaters (fix for #97)