Only call PsychJavaSwingCleanup after checking it exist()'s.

Be a bit more conservative and check in sca() and PsychImaging() if the
function PsychJavaSwingCleanup() exists, before calling it or queueing
a call to it in Screen's window close hook.

This allows users to simply delete the function file, should it turn
out to have unexpected harmful side effects.