PropagationModel/Mobility not correctly working when using MobilityHelper

This was reported by Piotr here (https://groups.google.com/g/ns-3-users/c/aCWHlimtwxQ).

I have confirmed the issue and made an example to test it(MobilityIssue.cc ). In the example, using the grid position allocator, 2 nodes are set 200 m apart (beyond the communication range). The beacon packets should not be received but they are. This odd behavior is not found when manually setting the mobility into the PHY.

It is possible that this bug was introduced by the recent change in !2270 (merged).

However, a similar issue had happened before with GridMobility as reported in #745 (closed).

I am still trying to find the solution to this one, if you have suggestions let me know.