glimagesink: only allow setting the GL display/context if it is a valid value
Otherwise, when setting the external application context, then the display may be cleared and then not used and the sharing mechanism does not work anymore.
Otherwise, when setting the external application context, then the display may be cleared and then not used and the sharing mechanism does not work anymore.