Remove unnecessary check for kernel existence.

Fixes #1544.