#142 - fixed null error and added test

Fixed NPE for multiselect and added test for issue #142