CB-6360: Fix for crash on iOS < 6.0

CB-6360: Fix for crash on iOS < 6.0, as described at https://issues.apache.org/jira/browse/CB-6360