Fix for null line error when rendering output

Sometimes the line can be null when rendering output when log to console is enabled. A good example is when executing a merge statement and outputting a line at the end of the merge statement like "OUTPUT $action, inserted.*, deleted.*;" I was encountering this error while programming.