ActiveAE: verify resample context before using it

fixes a potential issue of using a invalid resample context