issue #7: Fix getByDBRef argument check