bug fix for EMBPD00094677

The bug was occurring in the use case where the raw list was null and androidlist was not null , hence a null pointer exception when we call add method on null list. 

The changes also have a bug fix for the UI issue where if same capability is added in different sections of the build file, in the editor also then it would show up multiple times.