Adding diffObject fix for undef

Change-Id: Ife300c48d7e1a6dffccaa10f71c5a3fd31bf87f3