Fixed bug in call to getItem using first argument as return value

The console log was showing the error value instead of the value of the key being looked up!