Added check for malformed hash to oauth helper.