On the positivity of the second variation in finite elasticity