Issue #3540554 by tstoeckler: Functional tests attempting to release locks for a no-longer existing site throws an exception (cherry picked from commit 5477c043)