Fix for NPE (#49)

This disables the action when it shouldn't be executed