If Get(..) and AbsPath(..) get's empty lists they hang.
This adds unit tests for those cases and fixes them.

BUG=skia:2930
TBR=rmistry

Review URL: https://codereview.chromium.org/711063003