Rationalise null pointer checks in both decode_codepage functions, so