SWDEV-278346 - Replace assert with LogWarning()
SWDEV-278346 - Replace assert with LogWarning()

ROCr returns some unexpected values and for now just return
invalid device back to the app

Change-Id: Ia6fb709ed2dc77d77bd5d64de80b41b3720bed76

ROCm-Developer-Tools/ROCclr,ROCm-Developer-Tools/ROCclr