Bugfix for undeclared var.
Make admin form more robust: catch absense of defined field_collection fields.
Add field_delete_field() hook to clean up mapping var.