Error handling when obj is nil
casting to NSMutableDicrionary by creating new NSMutableDicrionary object.
"as NSMutableDicrionary" seems not to work for NSDictionary