[#1200] Fix for undefined  on new resource form on non-draft datasets