Memory Management Tweaks

Added extra defensive memory management to draw methods.

This was a rare crash, but would happen if something was still drawing in the background when the PDF file changed. The page reference would drop out from underneath and cause a BAD_ACCESS crash.

This change will just assure that whatever drawing was already running will finish successfully.