Various bug fixes

- Fixing none working autocomplete
- Rewriting autocomplete query.
- Constraints check that always delay the script 60 seconds when adding a new borger.dk article.
- Fixing invalid argument error in element_children().
- Fixing undefined index notices when locale.module is enabled.