JBIDE-13839 - Adding runtimes does not work properly

https://issues.jboss.org/browse/JBIDE-13839
Adding runtimes through runtime-detection does not work properly