Commented out alert

also added check for undefined before stringifying object.