View controller module doesnt check whether the orientation exist or not


qSlicerViewControllersModule::writeDefaultSliceViewSettings function tries to determine the patient position based on Axial slice orientation preset. But in custom applications it is possible to redefine presets (to XYZ for example) and in this case an error is shown in the log.

I propose to modify that part to preliminary check whether the orientation preset exist or not:

if (defaultViewNode->HasSliceOrientationPreset("Axial")){
  // do the check and write settings

May I create a PR?