Normalize NPCG in a regex route's matches to empty strings for undefined

Fixes #1076