Update path.class.js

Uniformed rendering method, the only difference is the exclusion of width and height === 0 exit condition now.
Looking forward to unify them if possible