Add trap for reporting data on debug builds and hardening for release build

I can't repro the case, so I've added a trap that detects it and requests more data on debug builds, and on release builds hardens the behaviour
Merge pull request #2047 from DynamoDS/magn4059

Fix or MAGN-4059 with hardening for release builds and a data request trap for debug