Do not rely on the `visible` state to check if an elemant was
already initialized.

Fixes #48.