egl: Fix a potential segfault in driver suffix matching.