fix undefined method error when textile ends with a NOTE

This fixes undefined method `post_match' for nil:NilClass when a :NOTE, :TIP etc is the last thing in the .textile