Added extra check for undefined variables
Added extra check for undefined variables

ocdtrekkie/draw,buddhikajay/draw,459below/draw,neynah/draw,JohnMcLear/draw,codenginebd/draw,sbrmnn/mydraw,bytesnz/draw,neynah/draw,bytesnz/draw,codenginebd/draw,theelectricwiz/draw,MrSwiss/draw,JohnMcLear/draw,ocdtrekkie/draw,theelectricwiz/draw,aaqibhabib/omlet-whiteboard,buddhikajay/draw,buddhikajay/draw,459below/draw,neynah/draw,OpeningDesign/draw,theelectricwiz/draw,aaqibhabib/omlet-whiteboard,codenginebd/draw,459below/draw,Yuniii/draw,MrSwiss/draw,ocdtrekkie/draw,JohnMcLear/draw,Yuniii/draw,bytesnz/draw,OpeningDesign/draw,MrSwiss/draw,sbrmnn/mydraw,Yuniii/draw,OpeningDesign/draw,aaqibhabib/omlet-whiteboard,buddhikajay/draw