Fixed a possible null-reference if the document ended before parsing of the asm expression was complete.