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