handle <%== nil %> cases

This is much less common than string literal appends, so add a special
case method for it.  Maybe fixes bug reported by @jeremy on 97ef636191933f1d4abc92fc10871e6d1195285c