Fixed issue with cloning where it was assumed that modelCreation was
always set in RestorableModel objects. Now, a check is performed on
this.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>