Check that region list isn't empty before attempting to retrieve a region from it
Set window role for Mir backend