Fix fatal error when member not found by name. Fixes #307