Fixed: NPE when registering a system using ak and when selected env is library

Fixed following tests:
- create an activation-key
- Register a system using multiple activation keys
- System-Details: Validate Activation-key link
- Register a system using AK & sys count should increase by 1
- Delete activation-key after registering a system with it.