As I understand it, you can still claim ESA, but you might not actually get any money paid. Sounds stupid, I know, but this is the same sort of situation as those who have passed the medical descriptors for ESA but are no longer getting any money due to the 365 day rule.
Nothing on this board constitutes legal advice - always consult a professional about specific problems