AMBARI-673. Going back to step 3 from step 5 in UI breaks DB - fixed an undefined constant issue with the original patch (Contributed by yusaku)