Fix a problem when spacing and margin and not define

Since the last version, my sprite animation didn't work because I didn't specify the margin and spacing value. Instead of having "0" it has "undefined" and that blow up all my code and animation didn't work.

I just fixed the problem by adding a "0" value when undefined is set and now my player animation is working again.