The camera is not designed to prevent you from intentionally creating out of focus images. If everything is out of focus, it should hunt trying to find focus and it may give up. It may or may not fire based on a glimpse of something it thinks is in focus.
If you are using any of the Dynamic focus modes, it is going to use a focus point and make a best effort for focus. Try using single point AF.