This is where I think there was previously a bug.  If this "if" statement is not true then further down simtrackid (which was previously a member) will be returned as is.  So whatever was in the simtrackid from an arbitrary previous call will be returned.  I have no idea how likely this "if" statement is to be false though.
The new behaviour is that an empty vector is returned.