better handling of nulls in nested matchers