Fix safenull for new sweetjs version