Added null handling for viewmodel. Fix JSONP formatter configuration.