Related-Bug: #1403538

Added null check while setting the default value in drop-down.
Earlier,it's failing when there are no values in drop-down

Change-Id: I72701df3c2f149949e345f20442c7c8552719995
(cherry picked from commit ed1221adc70547abad29958a58deb7fb5f449bac)