Avoid passing undefined reg match into getter