Fixed issue with FindPackages and added Debug asserts for not implemented stuff
Added an extra guard to prevent a nullref