[FIX] Proper index check for confirmations in block info

Will fix #2284 once merged.