It says you lose the action if your target becomes invalid. You lose the action, not the power; if you don't have a standard action any more, you can't have spent a power that requires a standard action.
Rule of thumb: If you didn't make the attack roll, you didn't expend the power. If you did, you did.