Revisiting the Hermite-Hadamard fractional integral inequality via a Green function