added error handling for page#evaluate