Use defensive condition to avoid comparison to undefined; rename and bind context internal function; rename parameter to match internal function;

Fixes:

Line: 1469, (js/sms.js):
ReferenceError: reference to undefined property this.previousHash
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>