Added a check for null pointer exception on FGT references, when
checking for inverse.
Merge remote-tracking branch 'origin/develop' into develop