fix for null metadata when using unsupported regioncode