Fix a crash when probing img2 format with a NULL filename.