Lionel Messi was required to jump off the bench to inspire Barcelona to victory over the La Liga minnows