fix empty action[value] and criteria[pattern] (bug in simplexml)