[fix] check and load weight for backward w.r.t. data

fix NULL pointer when back-propagating to the data for fixed i.e. not
back-propagated weights. same issue as #1048