Truncated many-body dynamics of interacting bosons: A variational principle with error monitoring