Fixed a bug causing slicing not to work if no printer profile was provided