fix crash in network access manager (fixes #9626)