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>
Merge pull request #130 from kvahlman/wayland-assert-fixes

wayland-egl: Don't run code inside asserts