Det såg ut att bli en kostsam förlust för IFK Göteborg i den allsvenska bottenstriden.