Adapt missing_target_cost to new dropout architecture

Missing_target_cost adapted to the new dropout architecture.
This patch is originally from Ian Goodfellow and was provided to Pierre-Luc as a quick fix for his code.
The purpose of this pull request is to make it available to everyone.
No unit test implemented so far for lack of time/knowledge on how to do so