drm/radeon/kms: make sure rio_mem is valid before unmapping it