prevent crashes in lenient mode when a returns tag has no value (#451)