Fix sanitize call on nil