Add extra checks in In-Reply-To header generation. Removes E_NOTICE level