In my VBScript, I would like to query whether a certain element is present on the screen. If I use "session.findById" and the element does not exist, then the script terminates with an error message. Is there another approach?

Yes, add a second parameter "false" in your "session.findById" call and test the result. Please see the SAP documentation for details.