Correct line number reported with "empty block"

Ensure the warning references the line of the opening brace of the block
body.

Resolves gh-1700