On the energetic formulation of the Gurtin and Anand model in strain gradient plasticity