Avoid extra query during sample delete pre-check

Signed-off-by: Don Naegely <naegelyd@gmail.com>