Better error message when loading molecule

Fix for NPE when no reader is created see bug 3610
Better error message if format in null