Fix "ad ls" segfault if requested object is not in an AFP volume

Fixes bug #496.