Re-add uniform location checks even though they aren't needed

Spec says that setting uniform -1 does nothing.