file-gif-load: Fail early if GetCode() fails (Bug #737375)