wayland_server: Only check if there's an executable when we check permissions
There's not much point checking that we can convert an executable into a file if we are not going to use that file.
Signed-off-by: Victoria Fischer victoria.fischer@mbition.io