Fix issue #387 by ignoring analysis done clicks if disabled.

@matallo finally reproduced this bastard. Click analysis tool, then click the done button before you draw anything. Three line fix boom! I'm going to merge and deploy this sucker haha. :D