Allowing empty path in ObjectPath

Fixes #1