Don't do anything if no movie argument is present

The movie argument can be undef at times. In that case this check will prevent a useless SQL query.