Save query dialog validation

@manwithtwowatches see my commit message in 263ee137. The prerelease versions of `compass-rails` doesn't seem to behaving as it should…