I do not know why it wouldn't work in 2014b. Something similar was reported for 2013b though it worked in previous versions and in 2014a. I do not use 2014b so haven't tested. Perhaps a Matlab issue that will be ironed out.
Any chance you could add an option to control the errorbar tick width, as this code used to do before Matlab 2014b kicked in: