Mac: Added check for return value for IOServiceMatching()
Unfortunately, the Mac API does not provide further details when
an error can occur (i.e. anytime), so it may be logical to just
return before proceeding further.
See the following page for details API:
http://developer.apple.com/library/mac/#documentation/IOKit/Reference/IOKitLib_header_reference/Reference/reference.html
Change-Id: I7f7dc9083eec3a936505dbfc3c6526062f03685d
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>