Bug 976967 - sdk/system module issue: the system.architecture and system.compiler return an invalid value

- fixed deliminator to dash
- handled possible null value
- fixed bug in test/test-system-runtime.js