wayland-egl: Don't run code inside asserts

Asserts can be compiled out so let's not do anything that could affect
behaviour in them.

Signed-off-by: Kalle Vahlman <kalle.vahlman@movial.com>