Fix a problem in isEmpty in MyActionBase.