Null pointer premature ejaculation

Fix to prevent use of null pointer in subtraction.
Merge pull request #6 from Sebbyastian/patch-1

Null pointer premature ejaculation