Check the block that the item frame will end in, not the block the player clicked.