Fix measurement_list example

Fixed to check the correct variable for .empty? state on line 29