added a slightly improved error message (vs. NPE) (related to bug 1367)