MDL-68619 mod_h5pactivity: add activity check to get_attempt method