GSlice can handle NULL arguments or return NULL values, but we did not properly mark them all the times.