Bugfix: if there are insufficient samples to calculate stddev/mean, no
record will be added for std/mean, which throws a key error later on.
This catches the key error.