I think I can help - you need to have the first part as ISNULL(fieldtotest) == TRUE ? replacement_value : else_value
I learned the hard way on this one as it seems that sometimes the ISNULL() as you have it works perfectly but frequently enough I have to 'finish the thought' or I get weird results.
Hope this does the trick.