Fixed BZ#997681 - Invalid injections should be detected.