Only emit history action if it's a number
Only emit history action if it's a number

If '1' was passed it was writing out 'Replace' - that's because
typescript enums have two sets of keys

grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation