fix bug when tip amount is empty

Before this commit, if a user emptied the tip field then clicked off, they'd be greeted with `NaN`
Merge pull request #1410 from Daxter/bugfix/js-tip-amount-missing

Fix bug when tip amount is empty