bugfix: detect non-empty objectPath earlier