CB-2208 Fix crash on File mobile-spec tests

Crash seems to not happen on every platform, but was showin up on the
x86 4.0.3 emulator.