am 1f661bd8: am 96e6ddb2: fix Gallery crashes with empty PTP device

* commit '1f661bd86a7936e32cef42e3ce6aa0c10a7c0c49':
  fix Gallery crashes with empty PTP device