Return nil when getting resource response for directory entry

Fixes #96