HUE-1564 hive.mapred.mode to 'strict' mode bug

https://issues.cloudera.org/browse/HUE-1564