Only check for the execution bits if a value was actually passed.

Tagging @cro