Bug Fix: Check for media upload scripts before setting post parent