Fix Shader::isAvailable() breaking context management if called too early

Fixes #211.