remove empty action attributes