Fixed bug #5905: Missing checks for SSL, mallshop and language-hosts

Improved the solution, that it works correctly with languages and added tests