Avoid app specific CreateDialogFactory code for non-DESKTOP.

As happened in 7e9ac5952711400ad856b3328c5cc00c05cec6f2 for cui library.

Change-Id: If51201eb452d4b84729b37949fb9b949020b47b8