Text drawing

The problem appears to be coming from text objects and how they're used for both author notes and text drawings.

The code path that generates the exception is incorrectly used for text drawings, so avoid it if @noteObject variable is not set.