wifi: fix crash when regex does not match