Checking bounds for validity before computing it's magnitude.

Change-Id: I2d0e1674db1ab34e9c8527d8909680f67c52326d
Merge topic '14650_check_bounds' into next

bf4f1389 Checking bounds for validity before computing it's magnitude.