Add safeObjectAtIndex category method to NSArray.