The Second Variation for the Singular Bolza Problem