Wouldn't local node being an owner cause the command not to go remotely and consequently command.getRemotelyFetchedValue() would be null? 
This is checked at line 163.