Fixing issue #498, relationship filters with static value

Thanks to @michaelrambeau for the catch.