LPS-49142 Robust check to prevent failures when the required resource does not exist