BUG-869: removed redundant check for null before an instanceof