You will only get your rewards if you were able to finish the dungeon that you are currently in. But we know, energy and Gems are hard to come by once used, so we will still encourage you to send your concern via our Game Support page in order for us to help you out. If the reason is just and right we are not going to think twice to give you a reward or compensation because of the issue that you have experienced.
Disclaimer: Lost units and items are not guaranteed to come or given back since every concern and account is subjected to an investigation. All will be based on the result of the investigation.