If you pass a non-existing study to the sample validation the page brakes, it should tell you that the study doesn't exist.