Added documentation to serializeObject method.

- to be more clear that there is a check for non-null Object argument

Change-Id: I71c1f723281f7ae02501b40dbcf8c533af090063
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
Merge "Added documentation to serializeObject method."