Fix that the optional `maskInputFn` was being accidentally ignored during the creation of the full snapshot