Use safeReject(def, ...) inplace of dev.reject(...)