Worked around this by changing the test of name from if( !result.name() ) to if( !result || !result.name() ) I am not sure if this is the correct place to address the issue (i.e. should signature object ever come back as null??).