Fixed conversion crashes due to zero-sized types.