Check input argument before use
Check input argument before use

- Enhance the way the input argument is checked in InitMediaThread()
  function.

Resolves: LE-11039
Change-Id: I126c1c4edd985660721bb1b6a7fb25570d5caa14

legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af