Beyond mean-field dynamics in open Bose-Hubbard chains