Local polynomial M-estimation in random design regression with dependent errors