console: fixed NPE on export record command when options are not specifed

if options are not specified the &#39;export record&#39; command throws a NullPointerException