Checking for existence of params['secureHash'] before calling upcase

If the params['secureHash'] is nil then we don't want to try upcase