Range check error on nan assignment to TDateTime
<h3><details><summary>Original Reporter info from Mantis: <small>BeniBela @benibela</small></summary><small>
- **Reporter name:** Benito van der Zander
</small></details></h3>
## Description:
``` pascal
function foo: TDateTime;
begin
result := NaN;
end;
```
causes a range check error during compilation for ARM
It did not happen when compiled for x86
## Mantis conversion info:
- **Mantis ID:** 27466
- **OS:** Linux
- **Build:** 23969
- **Platform:** x86_64 -> ARM
- **Version:** 2.7.1
issue