A humback whale stranded for weeks in shallow water off the Germany coast has been set free, but it remains unclear if he will survive.