SnapdragonCamera: fix null pointer exception

During layout change, it is possible camera preview is not
configured, yet and Camera.Parameters.getPreviewSize()
returns null pointer. Adding a null check to skip the layout
change if the pointer is null

Change-Id: Icb3ecf60c261e68cc5f2b05eba4df020857022eb
CRs-Fixed: 945969
1 file changed