Added condition to check Product Identifier is not nil.

Added condition to check if returned Product Identifier while restoring
the product is nil or not. If
transaction.originalTransaction.payment.productIdentifier returns nil,
variable value will be transaction.payment.productIdentifier. If still
it returns nil the alert is shown as return statement is executed.