Add null check, fix decryption exception

Should return null if decrypted TempData value is null