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

* commit 'a34608035da126e4bd5f299e8229b81bc40a2f1a':
  fix Gallery crashes with empty PTP device