Fix for issue #193 causing NPE to be thrown when recording enabled programmatically