Fixed deprecation warning

It is not like it sounds ;) In the if-statement some lines above, there is already a check for using new code on iOS 7 or later.