dirmodel: return 0 in dirmodel_count when not fully initialized
dirmodel: return 0 in dirmodel_count when not fully initialized

This allows a view to query the item count without crashing the
application when the dirmodel has not been pointed to a directory.

cglindkamp/dfm