It doesn’t cause any errors when you write to /media/card because it is just a regular directory until a device is mounted at that location (which happens automatically when you insert the SD card).
You can see this behavior just by unmounting the filesystem (umount /media/card) and then inspecting the /media/card directory. If you create files in that directory when the SD card isn’t mounted, they will stay there and be visible whenever the card isn’t mounted.
You could read the file /proc/mounts which shows the currently mounted filesystems.