XWIKI-9326: NumberProperty#equals throws NullPointer exception when one of the properties is null
- Tests included.

(cherry picked from commit 9b28e3da14ad4f873f9234bfb920cde23130467c)