Catch empty method error; fix blank values in query.