I though of another way to do that myself
SELECT row_id FROM table WHERE ISNULL(name,-1)=?
If you're sure that you will never use '-1' as a condition, this will work. Just use your parameter when you need a value and '-1' when you need "IS NULL". But I guess there is no way to pass "is null" as a parameter