JBIDE-14641 Error in opening palette when source has no file

Prevented exceptions.