fixes bug #4467

Added rescue statement which covers the case when the media has no
associated OS ids