Smallbugs

fix for two issues important for me : 
line 5309 https://github.com/DmitryBaranovskiy/raphael/issues/587
line 7205 https://github.com/DmitryBaranovskiy/raphael/issues/319